<?php
require_once $_SERVER["DOCUMENT_ROOT"]."/xshop/require_common.php";
$xshop = new XSHOP;
$user = $xshop->get_user_by_wx();
///$jssdk = new JSSDK();
///$signPackage = $jssdk->getSignPackage($user['wxusername']);
///$signPackage['debug'] = true;
///$signPackage['title'] = '首页';
///$signPackage['desc'] = $_ENV['appconfig']['companytitle']?:'智慧农业';
///$signPackage['link'] = SITE_URL."/apps/nongchang/?fromUserId=".$user['id']."#";
///$signPackage['imgUrl'] = SITE_URL.$_ENV['appconfig']['companylogo'];
///unset($signPackage['rawString']);
if(CONFIG::is_weixin()||CONFIG::is_dapp() || DEBUG){
    require_once __DIR__."/index_#filename#.html";
}
require_once ROOT."/xshop/_view/index.php";